package com.hjq.fcloud.bean;

import java.util.ArrayList;
import java.util.LinkedHashMap;

/**
 * 公共详情数据基类
 */
public class BaseDetailData {
    private int id;
    private String code;
    private ProjectBean project;//项目
    private SectBean sect;//标段
    private int is_loan;//是否贷款 1是2否
    private ConstructCorpBean construct_corp;//建设单位
    private Build_corp build_corp;//施工单位
    private SupplyCorpBean supply_corp;//供应商信息
    private String money;//债务金额
    private LinkedHashMap<String, ArrayList<FileItemBean>> files;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public ProjectBean getProject() {
        return project;
    }

    public void setProject(ProjectBean project) {
        this.project = project;
    }

    public SectBean getSect() {
        return sect;
    }

    public void setSect(SectBean sect) {
        this.sect = sect;
    }

    public int getIs_loan() {
        return is_loan;
    }

    public void setIs_loan(int is_loan) {
        this.is_loan = is_loan;
    }

    public ConstructCorpBean getConstruct_corp() {
        return construct_corp;
    }

    public void setConstruct_corp(ConstructCorpBean construct_corp) {
        this.construct_corp = construct_corp;
    }

    public Build_corp getBuild_corp() {
        return build_corp;
    }

    public void setBuild_corp(Build_corp build_corp) {
        this.build_corp = build_corp;
    }

    public SupplyCorpBean getSupply_corp() {
        return supply_corp;
    }

    public void setSupply_corp(SupplyCorpBean supply_corp) {
        this.supply_corp = supply_corp;
    }

    public String getMoney() {
        return money;
    }

    public void setMoney(String money) {
        this.money = money;
    }


    public LinkedHashMap<String, ArrayList<FileItemBean>> getFiles() {
        return files;
    }

    public void setFiles(LinkedHashMap<String, ArrayList<FileItemBean>> files) {
        this.files = files;
    }

    //====================== START ====================

    /**
     * 是否贷款 1是2否
     */
    public String getLoanName() {
        if (is_loan == 1) {
            return "是";
        } else if (is_loan == 2) {
            return "否";
        }
        return "";
    }
    //====================== END ====================

}

